package com.yunfei.springbootgoods.service.impl;

import com.yunfei.springbootgoods.entity.Category;
import com.yunfei.springbootgoods.mapper.CategoryMapper;
import com.yunfei.springbootgoods.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> getCategoryList() {
        List<Category> categoryList = categoryMapper.getCategoryList();
        return categoryList;
    }
}
